﻿using System.Net.Sockets;
using System.Text;

namespace MailServer
{
    class ClientConnectionHandler
    {
        public ClientConnectionHandler(TcpClient client)
        {
            const string message = "Hui!";

            byte[] buffer = Encoding.ASCII.GetBytes(message);

            client.GetStream().Write(buffer, 0, buffer.Length);

            client.Close();
        }
    }
}
